package com.wicket.okrcalc.integration.dto;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DataBigMiniRecordDto
 * @使用场景
 */
@Data
public class DataBigMiniRecordDto extends BaseDto implements Serializable {

  /**
   * 通用主键ID
   */
  @ApiModelProperty("通用主键ID")
  private String commPrimaryKey;

  /**
   * 通用数值字段1（小数型）
   */
  @ApiModelProperty("通用数值字段1（小数型）")
  private Double comFloatField1;

  /**
   * 通用数值字段2（小数型）
   */
  @ApiModelProperty("通用数值字段2（小数型）")
  private Double comFloatField2;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DataBigMiniRecordDto that = (DataBigMiniRecordDto) o;
    return (
      commPrimaryKey == that.commPrimaryKey &&
      comFloatField1 == that.comFloatField1 &&
      comFloatField2 == that.comFloatField2
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      commPrimaryKey,
      comFloatField1,
      comFloatField2
    );
  }

}
